import request from '@/utils/request'

// 查询角色列表
export function listAll() {
  return request({
    url: '/course/query',
    method: 'post',

  })
}

// 查询角色详细
export function getListT(id) {
  return request({
    url: '/course/queryByTeacher/'+id,
    method: 'post',

  })
}

export function getListS(id) {
  return request({
    url: '/course/queryByStudent/'+id,
    method: 'post',

  })
}
export function saveClass(data) {
  return request({
    url: '/sclass/insert',
    method: 'post',
    data: data
  })
}
